package com.ywu.sentinel.standard.data;

import com.ywu.sentinel.sdk.dto.YwuHotRuleDto;
import com.ywu.sentinel.standard.entity.YwuHotRuleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface YwuHotRuleRepository {
    void insert(@Param("model") YwuHotRuleEntity entity);

    YwuHotRuleEntity getEntity(@Param("model") YwuHotRuleEntity search);

    void delete(@Param("model") YwuHotRuleEntity delete);

    List<YwuHotRuleEntity> queryList(@Param("model") YwuHotRuleDto ruleDto);

    void update(@Param("model") YwuHotRuleEntity update);

    int queryListCount(@Param("model") YwuHotRuleDto ruleDto);

    List<YwuHotRuleEntity> queryPageList(@Param("model") YwuHotRuleDto ruleDto);
}
